Setting Up Print Batches

Suppose you have a situation where each transaction in an extract file creates a form set. Each form set can go to one or more recipients. Each recipient is defined as a separate batch. For example, recipient ORIGINAL goes to Batch1, recipient COPY goes to Batch2, and recipient SAMPLE goes to Batch3.

And, you want to…

Send COPY and ORIGINAL to the GenPrint program, but not SAMPLE.

Send ORIGINAL to archive, but not SAMPLE or COPY

To handle the first requirement, sending the COPY and ORIGINAL batches to the GenPrint program, but excluding the SAMPLE batch, include these settings in your FSISYS.INI file:

< ExcludeBatches >
       Batch3
< Print_Batches >
       Batch1 = BATCH1.BCH
       Batch2 = BATCH2.BCH
       Batch3 = SAMPLE.BCH
< Batch1 >
       Printer = PRINTER1
< Batch2 > 
       Printer = PRINTER2
< Printer1 >
       Local = Y (or N)
       Port = DATA\PCLBAT1 (or any meaningful file name…)
< Printer2 >
       Local = Y (or N)
       Port = DATA\PCLBAT1 (or any meaningful file name…)
< Recip_Names >
       Original = 001, ORIGINAL (actual text to print)
       Copy     = 002, COPY (actual text to print)
       Sample   = 003, SAMPLE

And, in the AFGJOB.JDT file, include these settings:

;IfRecipUsed;2;BATCH1=ORIGINAL
;IfRecipUsed;2;BATCH2=COPY
;IfRecipUsed;2;MANUAL=SAMPLE

Concerning the second requirement, sending ORIGINAL to archive, but not SAMPLE or COPY, the system does not allow this—even with custom code. The system is designed to archive either all recipients or none. Please note, that although the system archives all recipients, it stores the data only once. So, it does not waste any disk space.